<template>
	<div class="table">
		<el-table ref="baseTable" :data="tableData" border style="width: 100%">
			<el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.prop"
				:align="item.align?item.align:''">
				<template slot-scope="scope"></template>
			</el-table-column>
		</el-table>
		<div class="pagination" v-if="tableData.length != 0">
			<el-pagination @current-change="getTableList" :page-size="pagination.pageSize"
				:current-page.sync="pagination.pageNum" background layout="total,prev, pager, next,jumper,slot"
				:page-count="pagination.pages" :total="pagination.total">
			</el-pagination>
		</div>
	</div>
</template>

<script>
	import {
		mount
	} from '@vue/test-utils';
	export default {
		data() {
			return {
				tableData: [],
			};
		},
		filters: {},
		props: {
			tableData: Array,
			columns: Array,
			pagination: Object,
		},
		created() {},
		mounted() {},
		methods: {
			getTableList(pageNum) {},
		},
	};
</script>

<style>
</style>
